using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Security;

namespace Project.Ime
{
	public static class Util
	{
		public static bool IsPathValid(string path)
		{
			if (path == null || path.Trim().Length == 0)
				return false;
			try
			{
				Path.GetFullPath(path);
				return true;
			}
			catch (ArgumentException)
			{
			}
			catch (SecurityException)
			{
			}
			catch (NotSupportedException)
			{
			}
			catch (PathTooLongException)
			{
			}
			return false;
		}
	}
}
